/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.controller;

import com.sun.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FlowLimitController {

    @Autowired
    @Qualifier("testServiceImpl1")
    private TestService testService;


    @RequestMapping("/test")
    public String test() {
        return "hello...sentinel";
    }


    @RequestMapping("/hello")
    public String hello() {
        return testService.hello();
    }
}
